package cn.ljy.uem.model;

import cn.ljy.authority.model.SysUser;
import cn.ljy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(value="项目组成员工作日志")
@Data
@NoArgsConstructor
public class ProjectMenberDaily extends BaseModel {
    @ApiModelProperty(value="UUID")
    private String id;

    @ApiModelProperty(value = "作者-用户外键")
    @NotNull(message = "当前操作用户不能为空")
    private Integer authorId;

    @ApiModelProperty(value = "所属工程id")
    @NotBlank(message = "所属工程id不能为空")
    private String projectId;

    @ApiModelProperty(value = "所属项目组id")
    @NotBlank(message = "所属项目组id不能为空")
    private String teamId;

    @ApiModelProperty(value = "类型外键")
    @NotNull(message = "类型外键不能为空")
    private Integer typeId;

    @ApiModelProperty(value = "日志标题")
    @NotBlank(message = "日志标题不能为空")
    private  String title;

    @ApiModelProperty(value = "日志内容")
    @NotBlank(message = "日志内容不能为空")
    private  String content;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 最后编辑时间
     */
    @ApiModelProperty(value = "最后编辑时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    private  Boolean recycle;


    //数据库外键(非数据库字段)

    //作者
    private SysUser author;

    //工程
    private  Project project;

    //项目组
    private  ProjectTeam projectTeam;


}
